package org.management.system.service;

import java.util.List;
import org.management.base.BaseService;
import org.management.system.entity.RoleEntity;

/**
 * 功能描述
 * 角色接口类
 * @author jiangyan
 * @date 2019/03/14
 * @description
 * @project management
 */
public interface RoleService extends BaseService<RoleEntity> {
	
	List<RoleEntity> getRoleByUserId(String userId);

	String getRoleIdsByUserId(String userId);

	List<RoleEntity> getRolesByResourceId(String resourceId);

	String getRoleIdsByResourceId(String resourceId);

	void saveRoleRelation(String resourceId, String[] roleArray);
}
